home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / Libraries / BSP Tree 1.2 / Sources / Graphics / include / listptr_3d.h < prev    next >
Encoding:
Text File  |  1995-03-26  |  2.0 KB  |  41 lines  |  [TEXT/MMCC]

  1. //------------------------------------------------------------------------------
  2. //    File:                    listptr.h
  3. //    Date:                    9/26/94
  4. //    Author:                Bretton Wade
  5. //
  6. //    Description:    this file contains the class definition for a list pointer
  7. //
  8. //------------------------------------------------------------------------------
  9.  
  10. #include    "polylist_3d.h"
  11.  
  12. #ifndef    LISTPTR
  13. #define    LISTPTR
  14.  
  15. //------------------------------------------------------------------------------
  16. //    classes
  17. //------------------------------------------------------------------------------
  18. class    listptr                                                                                                                                        //    polygon list pointer class
  19. {                                                                                                                                                                //    begin class definition
  20.     private:                                                                                                                                            //    members internal to this class only
  21.     protected:                                                                                                                                        //    members internal to this class hierarchy
  22.                 polylist    *list;                                                                                                                //    the pointer to the list
  23.     public:                                                                                                                                                //    members available externally
  24.                 listptr (void);                                                                                                                    //    normal constructor
  25.                 listptr (const listptr &list);                                                                                    //    normal constructor
  26.                 ~listptr (void);                                                                                                                //    destructor
  27.                 listptr        &operator = (const listptr &list);                                                        //    assignment operator
  28.                 polylist    *operator -> (void) const;                                                                        //    pointer dereference operator
  29. };                                                                                                                                                            //    end polygon class definition
  30.  
  31. //------------------------------------------------------------------------------
  32. //    inlines
  33. //------------------------------------------------------------------------------
  34. inline    polylist    *listptr::operator -> (void) const                                                        //    pointer dereference operator
  35. {                                                                                                                                                                //    begin
  36.     return list;                                                                                                                                    //    return the pointer to the list
  37. }                                                                                                                                                                //    end
  38.  
  39. //------------------------------------------------------------------------------
  40.  
  41. #endif    //LISTPTR